package leaf.cloud.common.massage.entity;

import com.alibaba.fastjson2.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * @ClassName MassageMain
 * @Description
 * @Author YeZiHao
 * @Date 2023/11/13 14:22
 **/
@Getter
@Setter
public class MassageMain {
    @ApiModelProperty("企业应用的id-应用消息")
    @JSONField(name = "agentid")
    private int agentId;
    @ApiModelProperty("群聊id-群消息")
    @JSONField(name = "chatid")
    private String chatId;

    @JSONField(name = "touser")
    private String toUser;
    @JSONField(name = "toparty")
    private String toParty;
    @JSONField(name = "totag")
    private String toTag;

    //是否保密 0可分享，1不能分享且内容显示水印
    private int safe = 0;
    //表示是否开启id转译
    @JSONField(name = "enable_id_trans")
    private int enableIdTrans = 0;
    //表示是否开启重复消息检查
    @JSONField(name = "enable_duplicate_check")
    private final int enableDuplicateCheck = 1;
    //表示是否重复消息检查的时间间隔，默认1800s，最大不超过4小时
    @JSONField(name = "duplicate_check_interval")
    private final int duplicateCheckInterval = 1800;
}
